﻿namespace Digitalmes.Domain.Mes;

/// <summary>
/// 生产工单明细表
/// </summary>
[SugarTable("prod_wo_detail", "生产工单明细表")]
[SugarIndex("index_prod_wo_detail_woid", nameof(WoId), OrderByType.Asc)]
public class ProdWoDetail : EntityBaseId
{
    /// <summary>
    /// 工单Id
    /// </summary>
    [SugarColumn(ColumnDescription = "工单Id")]
    public long WoId { get; set; }

    /// <summary>
    /// SN
    /// </summary>
    [NotNull]
    [SugarColumn(ColumnDescription = "SN", Length = 64)]
    public string? Sn { get; set; }

    /// <summary>
    /// SN状态（1=>待生产;2=>已生产）
    /// </summary>
    [SugarColumn(ColumnDescription = "SN状态（1=>待生产;2=>已生产）")]
    public int Status { get; set; }

    /// <summary>
    /// 是否已上报给上层系统
    /// </summary>
    [SugarColumn(ColumnDescription = "是否已上报给上层系统")]
    public bool IsReported { get; set; }

    /// <summary>
    /// 上报时间
    /// </summary>
    [SugarColumn(ColumnDescription = "上报时间")]
    public DateTime? ReportTime { get; set; }
}
